package com.wfcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfcm.dao.WfLuckyCodeDao;
import com.wfcm.entity.WfLuckyCodeEntity;
import com.wfcm.service.WfLuckyCodeService;



@Service("wfLuckyCodeService")
public class WfLuckyCodeServiceImpl implements WfLuckyCodeService {
	@Autowired
	private WfLuckyCodeDao wfLuckyCodeDao;
	
	@Override
	public WfLuckyCodeEntity queryObject(Integer id){
		return wfLuckyCodeDao.queryObject(id);
	}
	
	@Override
	public List<WfLuckyCodeEntity> queryList(Map<String, Object> map){
		return wfLuckyCodeDao.queryList(map);
	}

	@Override
	public List<WfLuckyCodeEntity> queryUsers(Map<String, Object> map){
		return wfLuckyCodeDao.queryUsers(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return wfLuckyCodeDao.queryTotal(map);
	}
	
	@Override
	public void save(WfLuckyCodeEntity wfLuckyCode){
		wfLuckyCodeDao.save(wfLuckyCode);
	}
	
	@Override
	public void update(WfLuckyCodeEntity wfLuckyCode){
		wfLuckyCodeDao.update(wfLuckyCode);
	}
	
	@Override
	public void delete(Integer id){
		wfLuckyCodeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		wfLuckyCodeDao.deleteBatch(ids);
	}
	
}
